<template>
  <view class="container">
    <view class="header">
    <!-- <view class="left">
        <text class="close-icon">×</text>
      </view> -->
      <view class="title" >
        
      </view>
     <!-- <view class="right">
        <text class="menu-icon">···</text>
      </view> -->
    </view>

    <view class="content">
      <image class="illustration" src="/static/images/client/shoper/商家首页图.png"></image>
      <view class="welcome-text">
        欢迎光临
      </view>
      <view class="company-name">
        十堰小鲸隆网络科技有限公司
      </view>
      <button class="buy-button" @click="buyNow">
        我要买单
      </button>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    buyNow() {
      uni.showToast({
        title: '买单功能未实现',
        icon: 'none'
      });
    }
  }
}
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}
.header {
  display: flex;
  justify-content: center; /* 将justify-content改为center */
  align-items: center;
  padding: 0 15px;
  height: 60px;
  background-color: #f5f5f5;
}

.close-icon, .menu-icon {
  font-size: 20px;
}
.title {
  font-size: 18px;
  font-weight: bold;
  text-align: center; /* 添加这一行，确保文本居中 */
  flex: 1; /* 使标题占据可用的空间 */
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.illustration {
  width: 200px;
  height: 200px;
  margin-bottom: 30px;
}

.welcome-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.company-name {
  font-size: 16px;
  margin-bottom: 30px;
}

.buy-button {
  width: 80%;
  height: 50px;
  background-color: #1E90FF;
  color: white;
  border-radius: 25px;
  font-size: 18px;
  text-align: center;
  line-height: 50px;
}
</style>
